Updates for: per-revision delete flags, log exports, and a per-page redirect flag
[lhc/web/wiklou.git] / docs / upload.txt
1 Special:Upload:
2
3 wfSpecialUpload
4 new UploadForm
5 mUpload = new UploadFrom...
6 execute()
7 $wgEnableUploads
8 isAllowed(upload)
9 isBlocked()
10 wfReadOnly()
11 processUpload()
12 internalProcessUpload()
13 wfRunHooks(UploadForm:BeforeProcessing)
14 mUpload->getTitle()
15 wfStripIllegalFilenameChars
16 splitExtensions()
17 checkFileExtension()
18 Title::makeTitleSafe
19 getUserPermissionsErrors(edit; upload; create)
20 mUpload->verifyUpload()
21 empty(mFileSize)
22 getTitle()
23 checkOverwrite()
24 fetchFile()
25 verifyFile()
26 checkMacBinary()
27 wfRunHooks(UploadVerification)
28 if(!ignoreWarning) mUpload->checkWarnings()
29 getInitialPageText()
30 mUpload->performUpload()
31 mLocalFile->upload()
32 if(isGood() && $watch) addWatch()
33 if(isGood()) wfRunHooks(UploadComplete)
34 wfRunHooks(SpecialUploadComplete)
35
36 Changes:
37 * "Your file will be renamed to $1" check now done on the result of
38 Title::makeTitleSafe instead of filteredName
39 * getExistWarning only really does existence checks
40 * Other stuff forgotten to be documented
41